<template>
  <div class="continer">
    <div class="top">
      <i class="iconfont icon-zuojiantou" @click="funh()"></i>
      <p>村民124567890</p>
      <i class="iconfont icon-gengduo-shuxiang"></i>
    </div>
    <div class="nav">
      <div class="left">
        <img src="img/imgtitle.png" alt="" />
      </div>
      <div class="right">
        <div class="up">
          <div>
            <p class="p1">0</p>
            <p class="p2">粉丝</p>
          </div>
          <div>
            <p class="p1">3</p>
            <p class="p2">关注</p>
          </div>
          <div>
            <p class="p1">lv.0</p>
            <p class="p2">等级</p>
          </div>
        </div>
        <div class="down">
          <p class="p3">编辑信息</p>
        </div>
      </div>
    </div>
    <div class="add">
      <div class="content">
        <p class="p4">
          <i class="iconfont icon-jiahao1"></i>
          添加音乐标签
        </p>
      </div>
    </div>
    <div class="warpper">
      <ul>
        <li @click="com = 'Zhuyem'">主页</li>
        <li @click="com = 'Dongtaim'">动态</li>
        <li @click="com = 'Bokem'">博客</li>
      </ul>
      <component :is="com">com</component>
    </div>
  </div>
</template>

<script>
import Zhuyem from "@/components/myt/zhuyem.vue";
import Dongtaim from "@/components/myt/dongtaim.vue";
import Bokem from "@/components/myt/bokem.vue";
export default {
  data() {
    return {
      com: "Zhuyem",
    };
  },
  methods:{
    funh(){
      this.$router.push("/my")
    }

  },
  components: {
    Zhuyem,
    Dongtaim,
    Bokem,
  },
};
</script>

<style scoped>
.continer {
  background-color: #f4f4f4;
}
.top {
  width: 100%;
  height: 1.55rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.3rem;
}
.warpper {
  width: 6.93rem;
  margin: 0 auto;
}
i {
  font-size: 0.5rem;
}
.nav {
  display: flex;
  justify-content: space-around;
  width: 100%;
  height: 1.75rem;
}
img {
  width: 1.67rem;
  height: 1.72rem;
  border-radius: 50%;
}
.right {
  width: 4.4rem;
  height: 1.76rem;
  display: flex;
  flex-direction: column;
}
.up {
  height: 0.92rem;
  display: flex;
  justify-content: space-around;
}
.up > p {
  text-align: center;
  line-height: 0.451rem;
}
.p1 {
  font-size: 0.3rem;
  color: black;
  font-weight: 700;
}

.up > div {
  width: 1.32rem;
}
.down {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.p3 {
  border: 0.01rem solid #dadada;
  line-height: 0.59rem;
  width: 4.2rem;
  border-radius: 0.2rem;
  font-size: 0.26rem;
}
.add {
  height: 1.16rem;
  background-color: #f4f4f4;
  overflow: hidden;
}
.content {
  width: 2.06rem;
  height: 0.49rem;
  background-color: #ffffff;
  margin-left: 0.42rem;
  margin-top: 0.42rem;
  margin-bottom: 0.26rem;
  border-radius: 0.15rem;
  color: #9d9d9d;
}
.p4 {
  line-height: 0.48rem;
  text-align: center;
  height: 0.48rem;
  font-size: 0.1rem;
}
i {
  vertical-align: middle;
}
ul {
  height: 0.73rem;
  display: flex;
  justify-content: space-between;
}
li {
  width: 2.26rem;
  text-align: center;
  font-size: 0.26rem;
}
</style>